package main

import "fmt"

// 定义结构体
type Student struct {
	id      int
	name    string
	age     int
	gender  string //字符类型
	address string
}

func getStudent(name string) Student {
	var student Student = Student{1, name, 22, "male", "beijing"}
	return student
}

func main() {
	var zhangsan = getStudent("张三")
	fmt.Println(zhangsan)
	var lisi = getStudent("李四")
	fmt.Println(lisi)
}
